package com.ng.finance.api.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ng.finance.api.entity.UserPay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 83673
 * @since 2018-09-14
 */
public interface UserPayMapper extends BaseMapper<UserPay> {

    Double selectYesterdayPay();

    Double getTotalPay();

    Integer deleteMyPay(String id);

    List<UserPay> queryUserPayList(String payTime, Page page);

    List<UserPay> selectPersonPayList(@Param("payTime") String payTime, @Param("unionid") String unionid, Page page);

    Double selectPersonPay(String unionId);

    Double getMonthTotalPay(@Param("payTime") String payTime);

    Double selectPersonMonthPay(@Param("payTime") String payTime, @Param("unionid") String unionid);

    Double getTodayTotalPay();

    List<UserPay> selectNoReadList(@Param("userId") String userId, @Param("payType") Integer payType, @Param("lookState") Integer lookState, @Param("payTime") String payTime, Page page);

    Integer moreUnreimbursed(@Param("list") List<String> list);


}
